// samsting : this file is auto create.

#include "Slb/2014-05-15/DescribeLoadBalancerAttributeResponse.h"

namespace aliyun { namespace Slb {

DescribeLoadBalancerAttributeResponse::DescribeLoadBalancerAttributeResponse() {
}

int DescribeLoadBalancerAttributeResponse::ListenerPortAndProtocal::GetListenerPort(void) const {
  return ListenerPort_;
}

const string& DescribeLoadBalancerAttributeResponse::ListenerPortAndProtocal::GetListenerProtocal(void) const {
  return ListenerProtocal_;
}

int DescribeLoadBalancerAttributeResponse::ListenerPortAndProtocol::GetListenerPort(void) const {
  return ListenerPort_;
}

const string& DescribeLoadBalancerAttributeResponse::ListenerPortAndProtocol::GetListenerProtocol(void) const {
  return ListenerProtocol_;
}

const string& DescribeLoadBalancerAttributeResponse::BackendServer::GetServerId(void) const {
  return ServerId_;
}

int DescribeLoadBalancerAttributeResponse::BackendServer::GetWeight(void) const {
  return Weight_;
}

const std::vector<DescribeLoadBalancerAttributeResponse::ListenerPortAndProtocal>& DescribeLoadBalancerAttributeResponse::GetListenerPortsAndProtocal(void) const {
  return ListenerPortsAndProtocal_;
}

const std::vector<DescribeLoadBalancerAttributeResponse::ListenerPortAndProtocol>& DescribeLoadBalancerAttributeResponse::GetListenerPortsAndProtocol(void) const {
  return ListenerPortsAndProtocol_;
}

const std::vector<DescribeLoadBalancerAttributeResponse::BackendServer>& DescribeLoadBalancerAttributeResponse::GetBackendServers(void) const {
  return BackendServers_;
}

const std::vector<ListenerPort>& DescribeLoadBalancerAttributeResponse::GetListenerPorts(void) const {
  return ListenerPorts_;
}

const string& DescribeLoadBalancerAttributeResponse::GetLoadBalancerId(void) const {
  return LoadBalancerId_;
}

const string& DescribeLoadBalancerAttributeResponse::GetLoadBalancerName(void) const {
  return LoadBalancerName_;
}

const string& DescribeLoadBalancerAttributeResponse::GetLoadBalancerStatus(void) const {
  return LoadBalancerStatus_;
}

const string& DescribeLoadBalancerAttributeResponse::GetRegionId(void) const {
  return RegionId_;
}

const string& DescribeLoadBalancerAttributeResponse::GetRegionIdAlias(void) const {
  return RegionIdAlias_;
}

const string& DescribeLoadBalancerAttributeResponse::GetAddress(void) const {
  return Address_;
}

const string& DescribeLoadBalancerAttributeResponse::GetAddressType(void) const {
  return AddressType_;
}

const string& DescribeLoadBalancerAttributeResponse::GetVpcId(void) const {
  return VpcId_;
}

const string& DescribeLoadBalancerAttributeResponse::GetVSwitchId(void) const {
  return VSwitchId_;
}

const string& DescribeLoadBalancerAttributeResponse::GetNetworkType(void) const {
  return NetworkType_;
}

const string& DescribeLoadBalancerAttributeResponse::GetInternetChargeType(void) const {
  return InternetChargeType_;
}

int DescribeLoadBalancerAttributeResponse::GetBandwidth(void) const {
  return Bandwidth_;
}

int DescribeLoadBalancerAttributeResponse::GetSysBandwidth(void) const {
  return SysBandwidth_;
}

const string& DescribeLoadBalancerAttributeResponse::GetCreateTime(void) const {
  return CreateTime_;
}

int64 DescribeLoadBalancerAttributeResponse::GetCreateTimeStamp(void) const {
  return CreateTimeStamp_;
}

const string& DescribeLoadBalancerAttributeResponse::GetMasterZoneId(void) const {
  return MasterZoneId_;
}

const string& DescribeLoadBalancerAttributeResponse::GetSlaveZoneId(void) const {
  return SlaveZoneId_;
}

int DescribeLoadBalancerAttributeResponse::GetMaxConnLimit(void) const {
  return MaxConnLimit_;
}

const string& DescribeLoadBalancerAttributeResponse::GetSecurityStatus(void) const {
  return SecurityStatus_;
}

const char* DescribeLoadBalancerAttributeResponse::BaseKey(void) {
  return "DescribeLoadBalancerAttributeResponse";
}

void DescribeLoadBalancerAttributeResponse::UnmarshallerMap(std::map<string, string>& response_map) {
  int ListenerPortsAndProtocal__length = 0;
  UnmarshallerInt(ListenerPortsAndProtocal__length, response_map, "DescribeLoadBalancerAttributeResponse.ListenerPortsAndProtocal.Length");
  if(ListenerPortsAndProtocal__length >= 0) {
    ListenerPortsAndProtocal_.resize(ListenerPortsAndProtocal__length);
    for(int i1 = 0; i1 < ListenerPortsAndProtocal__length; i1++) {
      UnmarshallerInt(ListenerPortsAndProtocal_[i1].ListenerPort_, response_map, "DescribeLoadBalancerAttributeResponse.ListenerPortsAndProtocal["+string_ValueOfInt(i1)+"].ListenerPort");
      UnmarshallerString(ListenerPortsAndProtocal_[i1].ListenerProtocal_, response_map, "DescribeLoadBalancerAttributeResponse.ListenerPortsAndProtocal["+string_ValueOfInt(i1)+"].ListenerProtocal");
    } // for(int i1 = 0; i1 < ListenerPortsAndProtocal__length; i1++) {
  } // if(ListenerPortsAndProtocal__length >= 0) {

  int ListenerPortsAndProtocol__length = 0;
  UnmarshallerInt(ListenerPortsAndProtocol__length, response_map, "DescribeLoadBalancerAttributeResponse.ListenerPortsAndProtocol.Length");
  if(ListenerPortsAndProtocol__length >= 0) {
    ListenerPortsAndProtocol_.resize(ListenerPortsAndProtocol__length);
    for(int i1 = 0; i1 < ListenerPortsAndProtocol__length; i1++) {
      UnmarshallerInt(ListenerPortsAndProtocol_[i1].ListenerPort_, response_map, "DescribeLoadBalancerAttributeResponse.ListenerPortsAndProtocol["+string_ValueOfInt(i1)+"].ListenerPort");
      UnmarshallerString(ListenerPortsAndProtocol_[i1].ListenerProtocol_, response_map, "DescribeLoadBalancerAttributeResponse.ListenerPortsAndProtocol["+string_ValueOfInt(i1)+"].ListenerProtocol");
    } // for(int i1 = 0; i1 < ListenerPortsAndProtocol__length; i1++) {
  } // if(ListenerPortsAndProtocol__length >= 0) {

  int BackendServers__length = 0;
  UnmarshallerInt(BackendServers__length, response_map, "DescribeLoadBalancerAttributeResponse.BackendServers.Length");
  if(BackendServers__length >= 0) {
    BackendServers_.resize(BackendServers__length);
    for(int i1 = 0; i1 < BackendServers__length; i1++) {
      UnmarshallerString(BackendServers_[i1].ServerId_, response_map, "DescribeLoadBalancerAttributeResponse.BackendServers["+string_ValueOfInt(i1)+"].ServerId");
      UnmarshallerInt(BackendServers_[i1].Weight_, response_map, "DescribeLoadBalancerAttributeResponse.BackendServers["+string_ValueOfInt(i1)+"].Weight");
    } // for(int i1 = 0; i1 < BackendServers__length; i1++) {
  } // if(BackendServers__length >= 0) {

    int ListenerPorts__length = 0;
    UnmarshallerInt(ListenerPorts__length, response_map, "DescribeLoadBalancerAttributeResponse.ListenerPorts.Length");
    if(ListenerPorts__length >= 0) {
      ListenerPorts_.resize(ListenerPorts__length);
      for(int i1 = 0; i1 < ListenerPorts__length; i1++) {
      UnmarshallerString(ListenerPorts_[i1], response_map, "DescribeLoadBalancerAttributeResponse.ListenerPorts["+string_ValueOfInt(i1)+"]");
      } // for(int i1 = 0; i1 < ListenerPorts__length; i1++) {
    } // if(ListenerPorts__length >= 0) {

  UnmarshallerString(LoadBalancerId_, response_map, "DescribeLoadBalancerAttributeResponse.LoadBalancerId");
  UnmarshallerString(LoadBalancerName_, response_map, "DescribeLoadBalancerAttributeResponse.LoadBalancerName");
  UnmarshallerString(LoadBalancerStatus_, response_map, "DescribeLoadBalancerAttributeResponse.LoadBalancerStatus");
  UnmarshallerString(RegionId_, response_map, "DescribeLoadBalancerAttributeResponse.RegionId");
  UnmarshallerString(RegionIdAlias_, response_map, "DescribeLoadBalancerAttributeResponse.RegionIdAlias");
  UnmarshallerString(Address_, response_map, "DescribeLoadBalancerAttributeResponse.Address");
  UnmarshallerString(AddressType_, response_map, "DescribeLoadBalancerAttributeResponse.AddressType");
  UnmarshallerString(VpcId_, response_map, "DescribeLoadBalancerAttributeResponse.VpcId");
  UnmarshallerString(VSwitchId_, response_map, "DescribeLoadBalancerAttributeResponse.VSwitchId");
  UnmarshallerString(NetworkType_, response_map, "DescribeLoadBalancerAttributeResponse.NetworkType");
  UnmarshallerString(InternetChargeType_, response_map, "DescribeLoadBalancerAttributeResponse.InternetChargeType");
  UnmarshallerInt(Bandwidth_, response_map, "DescribeLoadBalancerAttributeResponse.Bandwidth");
  UnmarshallerInt(SysBandwidth_, response_map, "DescribeLoadBalancerAttributeResponse.SysBandwidth");
  UnmarshallerString(CreateTime_, response_map, "DescribeLoadBalancerAttributeResponse.CreateTime");
  UnmarshallerInt64(CreateTimeStamp_, response_map, "DescribeLoadBalancerAttributeResponse.CreateTimeStamp");
  UnmarshallerString(MasterZoneId_, response_map, "DescribeLoadBalancerAttributeResponse.MasterZoneId");
  UnmarshallerString(SlaveZoneId_, response_map, "DescribeLoadBalancerAttributeResponse.SlaveZoneId");
  UnmarshallerInt(MaxConnLimit_, response_map, "DescribeLoadBalancerAttributeResponse.MaxConnLimit");
  UnmarshallerString(SecurityStatus_, response_map, "DescribeLoadBalancerAttributeResponse.SecurityStatus");
}


} } // namespace aliyun { namespace Slb {

// end of file 
